﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.Auth
{
    /// <summary>
    /// user_individual
    /// </summary>
    [SugarTable("user_individual", "用户对应个人用户表")]
    [Tenant("0")]
    public class UserIndividual
    {
        /// <summary>
        /// 关联用户user_base_id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long UserId { get; set; }

        /// <summary>
        /// 生日日期
        /// </summary>
        public DateTime BirthDate { get; set; }

        /// <summary>
        /// 性别：1=男，2=女，3=未知
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 个人头像URL
        /// </summary>
        public string ProfilePicture { get; set; }

        /// <summary>
        /// 会员等级：0=无会员，1=会员，2=蛹化会员，3=羽化会员，4=拟态会员，5=虫子会员
        /// </summary>
        public int MembershipLevel { get; set; }

        /// <summary>
        /// 会员开始日期
        /// </summary>
        public DateTime? MembershipStartDate { get; set; }

        /// <summary>
        /// 会员到期日期
        /// </summary>
        public DateTime? MembershipEndDate { get; set; }

        /// <summary>
        /// 会员状态（1=激活，0=冻结）
        /// </summary>
        public bool IsActive { get; set; }
    }
}
